<?php if (!defined('SHUIPF_VERSION')) exit(); ?>
<Admintemplate file="Common/Head"/>
<body class="J_scroll_fixed">
<style>
    tr td{padding: 10px;}
</style>
<script type="text/javascript">
    $(document).ready(function()
    {
        $("#add_form").click(function()
        {
            $("#html").append($("#html_tpl").html());
        });

    });
</script>
<div class="wrap J_check_wrap">
    <Admintemplate file="Common/Nav"/>
    <link href="/statics/job/js/js/common.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/statics/job/js/js/jquery.js"></script>
    <script type="text/javascript" src="/statics/job/js/js/jquery.QSdialog.js"></script>
    <script type="text/javascript" src="/statics/job/js/js/jquery.vtip-min.js"></script>
    <script type="text/javascript" src="/statics/job/js/js/jquery.grid.rowSizing.pack.js"></script>
    <script type="text/javascript" src="/statics/job/js/js/jquery.validate.min.js"></script>
    <!--<script type="text/javascript" src="/statics/job/js/js/common.js"></script>-->

    <div class="toptip">
        <h2>提示：</h2>
        <p>
            点击“继续添加”按钮，可同时添加多个分类！<br />
        </p>
    </div>
    <div class="toptit">在 <span style="color:#0066CC">[{$group.g_name}] </span>下新增分类</div>
    <form id="form1" name="form1" method="post" action="{:U('admin/categroy/add_category')}">

        <div id="html_tpl">
            <table width="100%" border="0" cellspacing="6" cellpadding="0" style="border-bottom:1px #96B7E2 dashed">
                <tr>
                    <td width="120" align="right">名称:</td>
                    <td><input name="c_name[]" type="text" class="input_text_200"  value="" /></td>
                </tr>
                <tr>
                    <td width="120" align="right">排序:</td>
                    <td>
                        <input name="c_order[]" type="text" class="input_text_200"  value="0" />
                        <input name="c_alias[]" type="hidden" value="{$group.g_alias}" />
                        <input name="c_parentid[]" type="hidden" value="0" />
                    </td>
                </tr>
                <if condition="$group[g_alias] eq job_officebuilding">
                    <tr>
                        <td width="120" align="right">说明:</td>
                        <td>
                            <input name="c_note[]" type="text" class="input_text_200" maxlength="60" />
                            <span class="admin_note">如：建设与东环路交叉口鼎元时代中心</span>
                        </td>
                    </tr>
                </if>


            </table>
        </div>
        <div id="html"></div>
        <table width="100%" border="0" cellspacing="6" cellpadding="0">
            <tr>
                <td width="120"> </td>
                <td>
                    <input type="submit" name="addsave" value="保存" class="admin_submit" />
                    <input type="button" name="add_form" id="add_form" value="继续添加" class="admin_submit" />
                    <input name="submit22" type="button" class="admin_submit"    value="返 回" onclick="history.go(-1)"/>

                </td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>